package com.lhnstart.learn.bases.cycle;

/**
 * @author lhn
 * @date 2022/10/25 19:38
 * @since 1.0.0
 **/
public class While {

    public static void main(String[] args) {
        int i = 40;
        while (i <= 200) {
            if (i % 2 == 0) {
                System.out.println(i);
            }
            i++;
        }
    }

    private static void extracted() {
        int i = 1;
        while (i <= 100) {
            if (i % 3 == 0) {
                System.out.println(i);
            }
            i++;
        }
    }

}